package com.lm.upms.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.lm.upms.api.entity.SysUserRole;
import com.lm.upms.mapper.SysUserRoleMapper;
import com.lm.upms.service.SysUserRoleService;
import org.springframework.stereotype.Service;

/**
 * 用户角色关联关系
 *
 * @author lm
 * @date
 */
@Service
public class SysUserRoleServiceImpl extends ServiceImpl<SysUserRoleMapper, SysUserRole> implements SysUserRoleService {

    /**
     * 根据用户Id删除该用户的角色关系
     *
     * @param userId 用户ID
     * @return
     */
    @Override
    public Boolean deleteByUserId(Integer userId) {
        return baseMapper.deleteByUserId(userId);
    }

}